{// 引入标签库 }
<tagLib name="fanwe" />
<include file="Public:header" />
<load href="__TMPL__ThemeFiles/Js/jquery.js" />
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/calendar.php?lang=zh-cn" ></script>
<load href='__TMPL__ThemeFiles/Js/calendar/calendar.css' />
<div id="main" class="main" >
<div class="content">
<div class="title">{$Think.lang.EDIT_DATA} [ <a href="{:u($module_name.'/index')}">{$Think.lang.BACK_LIST}</a> ]</div>
<div id="result" class="result none"></div>
<form method='post' id="form" name="form" action="{:u('ExchangeGoods/update')}"  enctype="multipart/form-data">
<table cellpadding=0 cellspacing=0 width=100% class="role_table" >
<tr>
	<td class="tRight" width="150">团购商品：</td>
	<td class="tLeft" >
		<if condition="$vo.site_name neq ''">【{$vo.site_name}<if condition="$vo.city neq ''">&nbsp;{$vo.city}</if>】</if>{$vo.goods_name}
	</td>
</tr>
<tr>
	<td class="tRight" width="150">缩略名称：</td>
	<td class="tLeft" >
		<input type="text" name="name" class="bLeft" value="{$vo.name}" />
	</td>
</tr>
<tr>
	<td class="tRight" width="150">商品类型：</td>
	<td class="tLeft" >
		<select name="goods_type">
			<option value="0" <if condition="0 eq $vo['goods_type']">selected</if>>团购券(即时发放)</option>
			<option value="1" <if condition="1 eq $vo['goods_type']">selected</if>>团购券(手动发放)</option>
			<option value="2" <if condition="2 eq $vo['goods_type']">selected</if>>实体商品</option>
		</select>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">&nbsp;</td>
	<td class="tLeft" >
		团购券(即时发放)：当会员兑换成功后，自动分配团购券给会员；<br/>
		团购券(手动发放)：管理员后台进行处理；<br/>
		实体商品：管理员后台进行处理；<br/>
		（团购券商品请在＂列表＂页点击＂团购券列表＂添加要发放的团购券）
	</td>
</tr>
<tr>
	<td class="tRight" width="150">兑换积分：</td>
	<td class="tLeft" >
		<input type="text" name="integral" class="bLeftRequire" value="{$vo.integral}" />&nbsp;兑换本团购商品需要消耗的积分值
	</td>
</tr>
<tr>
	<td class="tRight" width="150">库存：</td>
	<td class="tLeft" >
		<input type="text" name="stock" class="bLeftRequire" value="{$vo.stock}" />
	</td>
</tr>
<tr>
	<td class="tRight" width="150">是否推荐：</td>
	<td class="tLeft" >
		<label><input type="radio" name="is_best" value="0" <if condition="0 eq $vo['is_best']">checked="checked"</if>>非推荐</label>
		<label><input type="radio" name="is_best" value="1" <if condition="1 eq $vo['is_best']">checked="checked"</if>>推荐</label>
	</td>
</tr>
<tr>
	<td class="tRight">开始时间：</td>
	<td class="tLeft" >
		<input type="text" name="begin_time" id="begin_time"  class="bLeft" value="{$vo.begin_time|toDate}">
		<input type="button" name="btn_begin_time" id="btn_begin_time" onclick="return showCalendar('begin_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_begin_time');" value="{$Think.lang.SELECT}" class="button"/>
	</td>
</tr>
<tr>
	<td class="tRight">结束时间：</td>
	<td class="tLeft" >
		<input type="text" name="end_time" id="end_time"  class="bLeft" value="{$vo.end_time|toDate}">
		<input type="button" name="btn_end_time" id="btn_end_time" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_end_time');" value="{$Think.lang.SELECT}" class="button"/>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">排序：</td>
	<td class="tLeft" >
		<input type="text" name="sort" class="bLeft" value="{$vo.sort}" />
	</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td class="center">
	<input type="hidden" name="id" value="{$vo.id}" />
	<input type="submit" value="{$Think.lang.SAVE_DATA}"  class="button small"> <input type="reset" class="button small" onclick="resetEditor()" value="{$Think.lang.RESET_DATA}" ></td>
</tr>
</form>
</table>
</div>
</div>
